package com.ruoyi.logistic.service.impl;

import com.ruoyi.logistic.domain.NetworkName;
import com.ruoyi.logistic.mapper.NetworkNameMapper;
import com.ruoyi.logistic.service.INetworkNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NetworkNameServiceImpl implements INetworkNameService {
    @Autowired
    private NetworkNameMapper networkNameMapper;
    @Override
    public List<NetworkName> selectAll() {
        return networkNameMapper.selectAll();
    }

    @Override
    public NetworkName findById(Integer id) {
        return networkNameMapper.findById(id);
    }

    @Override
    public Boolean insert(NetworkName networkName) {
        return networkNameMapper.insert(networkName) ;
    }

    @Override
    public Boolean update(NetworkName networkName) {
        return networkNameMapper.update(networkName);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkNameMapper.deleteById(id);
    }

    @Override
    public List<NetworkName> selectContractArea() {
        return networkNameMapper.selectContractArea();
    }

    @Override
    public List<NetworkName> selectByNetworkId() {
        return networkNameMapper.selectByNetworkId();
    }
}
